package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysThesauriWordRelationMapper;
import com.ruoyi.system.domain.SysThesauriWordRelation;
import com.ruoyi.system.service.ISysThesauriWordRelationService;

/**
 * 叙词关系维护Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-22
 */
@Service
public class SysThesauriWordRelationServiceImpl implements ISysThesauriWordRelationService 
{
    @Autowired
    private SysThesauriWordRelationMapper sysThesauriWordRelationMapper;

    /**
     * 查询叙词关系维护
     * 
     * @param id 叙词关系维护主键
     * @return 叙词关系维护
     */
    @Override
    public SysThesauriWordRelation selectSysThesauriWordRelationById(Long id)
    {
        return sysThesauriWordRelationMapper.selectSysThesauriWordRelationById(id);
    }

    /**
     * 查询叙词关系维护列表
     * 
     * @param sysThesauriWordRelation 叙词关系维护
     * @return 叙词关系维护
     */
    @Override
    public List<SysThesauriWordRelation> selectSysThesauriWordRelationList(SysThesauriWordRelation sysThesauriWordRelation)
    {
        return sysThesauriWordRelationMapper.selectSysThesauriWordRelationList(sysThesauriWordRelation);
    }

    /**
     * 新增叙词关系维护
     * 
     * @param sysThesauriWordRelation 叙词关系维护
     * @return 结果
     */
    @Override
    public int insertSysThesauriWordRelation(SysThesauriWordRelation sysThesauriWordRelation)
    {
        return sysThesauriWordRelationMapper.insertSysThesauriWordRelation(sysThesauriWordRelation);
    }

    /**
     * 修改叙词关系维护
     * 
     * @param sysThesauriWordRelation 叙词关系维护
     * @return 结果
     */
    @Override
    public int updateSysThesauriWordRelation(SysThesauriWordRelation sysThesauriWordRelation)
    {
        return sysThesauriWordRelationMapper.updateSysThesauriWordRelation(sysThesauriWordRelation);
    }

    /**
     * 批量删除叙词关系维护
     * 
     * @param ids 需要删除的叙词关系维护主键
     * @return 结果
     */
    @Override
    public int deleteSysThesauriWordRelationByIds(Long[] ids)
    {
        return sysThesauriWordRelationMapper.deleteSysThesauriWordRelationByIds(ids);
    }

    /**
     * 删除叙词关系维护信息
     * 
     * @param id 叙词关系维护主键
     * @return 结果
     */
    @Override
    public int deleteSysThesauriWordRelationById(Long id)
    {
        return sysThesauriWordRelationMapper.deleteSysThesauriWordRelationById(id);
    }
}
